<template>
  <div class="table">
    <div class="title">表格截图</div>
    <div class="content">
      <el-button type="primary" @click="handlePicture"> 截&nbsp;&nbsp;&nbsp;&nbsp;图 </el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { tableDataStoreHook } from '@store/dataStore'

// 获取 store 实例
const tableDataStore = tableDataStoreHook()
const handlePicture = async () => {
  tableDataStore.doisCaptureMode()
}
</script>

<style lang="scss" scoped>
.table {
  padding: 10px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .content {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
</style>
